package com.cyt.work.wb.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.work.wb.model.po.WbRepairRecord;
import com.cyt.work.wb.model.vo.WbRepairRecordVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;

import java.util.List;

/**
 * 维修记录表-维修记录表Service层接口类
 *
 * @author shengQiang Yu
 * @date 2019-11-28 9:27:55
 */
public interface WbRepairRecordService extends BaseService<WbRepairRecord> {

    /**
     * 查询对象集合
     *
     * @param wbRepairRecordVo 对象
     * @return List 对象集合
     * @author shengQiang Yu
     * @date 2019-11-28 9:27:55
     */
    List<WbRepairRecord> listExample(WbRepairRecordVo wbRepairRecordVo);

    /**
     * 分页查询
     *
     * @param wbRepairRecordVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:27:55
     */
    ReturnResult page(WbRepairRecordVo wbRepairRecordVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param wbRepairRecordVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:27:55
     */
    ReturnResult addOrUpdate(WbRepairRecordVo wbRepairRecordVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param wbRepairRecordVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:27:55
     */
    ReturnResult remove(WbRepairRecordVo wbRepairRecordVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param wbRepairRecordVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:27:55
     */
    ReturnResult delete(WbRepairRecordVo wbRepairRecordVo, SysUser sysUser);
}